package com.buddy.design.pattern._01factory.simplefactory;


import com.buddy.design.pattern._01factory.Course;
import com.buddy.design.pattern._01factory.JavaCourse;

public class SimpleFactoryTest {

    /**
     * 简单工厂模式
     */
    public static void main(String[] args){
        CourseFactory courseFactory = new CourseFactory();
        Course course = courseFactory.createCourse(JavaCourse.class);
        course.record();
    }
}
